import os
import random

WALLPAPER_DIR = "/home/lgs/dotfiles/wallpapers"


def random_wallpaper(dir, prefix):
    files = [f for f in os.listdir(dir) if f.startswith(prefix)]
    return os.path.join(dir, random.choice(files))


dracula_colors = {
  "background":   "#282a36",
  "current_line": "#44475a",
  "foreground":   "#f8f8f2",
  "comment":      "#6272a4",
  "cyan":         "#8be9fd",
  "green":        "#50fa7b",
  "orange":       "#ffb86c",
  "pink":         "#ff79c6",
  "purple":       "#bd83f9",
  "red":          "#ff5555",
  "yellow":       "#f1fa8c",
}

dracula_theme = {
    "window_border_focus":         dracula_colors["pink"],
    "window_border_normal":        dracula_colors["comment"],
    "bar_bg":                      dracula_colors["background"],
    "bar_fg":                      dracula_colors["foreground"],
    "bar_groupbox_border_current": dracula_colors["pink"],
    "bar_groupbox_active":         dracula_colors["pink"],
    "bar_groupbox_inactive":       dracula_colors["comment"],
    "net_down":                    dracula_colors["red"],
    "net_up":                      dracula_colors["orange"],
    "cpu":                         dracula_colors["yellow"],
    "mem":                         dracula_colors["green"],
    "date":                        dracula_colors["purple"],
    "clock":                       dracula_colors["pink"],

    "wallpaper": random_wallpaper("/home/lgs/dotfiles/wallpapers", "dracula")
}


